package com.heima.model.article.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("ap_article_config")
public class ApArticleConfig {

    public ApArticleConfig(Long articleId ){
        this.articleId = articleId;
        this.isComment = true ;
        this.isForward = true ;
        this.isDown = false ;
        this.isDelete = false ;
    }

    @TableId(value = "id" , type =  IdType.ID_WORKER)
   private Long  id ; // '主键',

    @TableField("article_id")
   private Long  articleId  ;// '文章ID',
    @TableField("is_comment")
   private boolean  isComment  ;// '是否可评论',
    @TableField("is_forward")
   private boolean isForward  ;// '是否转发',
    @TableField("is_down")
   private boolean  isDown  ; //    '是否下架',
    @TableField("is_delete")
   private boolean  isDelete ; //   '是否已删除',

}
